home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Conversion / Convert_PICT / Testing / hex_tests / pat=set1=newcolor.hex < prev    next >
Text File  |  1992-12-05  |  3KB  |  59 lines

  1. % header
  2. 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  3. % end of app-specific header
  4. 00FF 0000 0000 00FF 00FF    % pict size (bogus) and top left bottom right
  5. 0011 02FF                        % verson
  6. 0001 000A 0000 0000 00FF 00FF    % Clip region.  Added to keep Mac tester happy.
  7. 0030 0000 0000 00FF 00FF        % draw bounding rect
  8.  
  9. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  10. %
  11. %    This test set seeks to demonstrate that the primary object
  12. %    manipulations (filling, painting, erasing, framing) work as
  13. %    they should with patterns.  It doesn't test all opcodes.  Merely
  14. %    a representative subset.
  15. %    This test confirms that it works properly with pict 2 style colors
  16. %
  17. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  18.  
  19. 0002 0008 142A 552A 1408        % back pat (grey diamonds)
  20. 0009 7789 8f8f 7798 f8f8            % pen pat (the black dimpled circles one)
  21. 000A 8244 3944 8201 0101        % fill pat
  22.  
  23. %
  24. %    Use new-style colors
  25. %
  26. 001A    0000 0000 FFFf    % background color (blue)
  27. 001B    FFFf FFFf 0000    %  foreground color (yellow)
  28.  
  29. 000B 0010 0010    % roundrect oval size
  30.  
  31. % draw lines along its four sides
  32. 0020 0010 0000 0010 00FF
  33. 0020 0000 0010 00FF 0010
  34. 0020 0050 0000 0050 00FF
  35. 0020 0000 0050 00FF 0050
  36.  
  37. 0020 0000 0080 00FF 0080
  38. 0020 0000 00C0 00FF 00C0
  39.  
  40. 0020 0080 0000 0080 00FF
  41. 0020 00C0 0000 00C0 00FF
  42.  
  43. % Frame a rectangle
  44. 0030 0010 0010 0050 0050
  45.  
  46. % paint an adjacent roundrect
  47. 0041 0010 0080 0050 00C0
  48.  
  49. % try to invert part of the  last rectangle with an arc
  50. 0063 0010 0080 0050 00C0  0010 00A0
  51.  
  52. % fill an oval below that one
  53. 0054 0080 0080 00C0 00C0
  54.  
  55. % erase an arc 
  56. 0062 0080 0010 00C0 0050 0010 00A0
  57.  
  58. 00FF    % end
  59.